public class Elaina_10_7_ti1 {
    private int Start;
    private int End;
    private int a;
    private int b;
    private int c;
    public Elaina_10_7_ti1()
    {
        Start = 1;
        End = 20;
        a = 2; b = 3; c = 1;
    }
    public int calculateSum()
    {
        int ret = 0;
        for(int i = Start;i <= End;++i)
        {
            ret += a * i * i + b * i + c;
        }
        return ret;
    }
    public static void main(String[] args) {
        Elaina_10_7_ti1 sum = new Elaina_10_7_ti1();
        System.out.println(sum.calculateSum());
    }
}
